package com.waner.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.waner.reggie.dto.OrdersDto;
import com.waner.reggie.entity.Orders;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

public interface OrdersService extends IService<Orders> {

    @Transactional
    public Page<Orders> pageWithNumberTime(int page, int pageSize, String number, LocalDateTime beginTime, LocalDateTime endTime);

    @Transactional
    public void saveWithDetailAndSCart(Orders order);

    @Transactional
    public Page<OrdersDto> pageWithDetais(int page,int pageSize);

}
